﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Yun.Interface;
using Yun.Response;
using Yun.Util;

namespace Yun.IM.Request
{
    /// <summary>
    /// 删除用户聊天列表信息
    /// yun.im.rongcloud.user.chat.delete
    /// </summary>
    public class DeleteUserChatRequest : ITopRequest<IntResultResponse>
    {
        /// <summary>
        /// 二人会话是 PERSON 、群组会话是 GROUP
        /// </summary>
        public string ChannelType { get; set; }

        /// <summary>
        /// 目标ID
        /// </summary>
        public long TargetId { get; set; }

        public void Validate()
        {
            RequestValidator.ValidateRequired("channeltype", ChannelType);
            RequestValidator.ValidateRequired("targetid", TargetId);
        }

        public string GetApiName()
        {
            return "yun.im.rongcloud.user.chat.delete";
        }

        public IDictionary<string, string> GetParameters()
        {
            var parameters = new YunDictionary
            {
                {"channeltype", ChannelType},
                {"targetid", TargetId}
            };

            return parameters;
        }

         
    }
}
